set(client_common_src src/client_common.c)

add_library(client_common_obj OBJECT ${client_common_src})
target_include_directories(client_common_obj PUBLIC inc)
target_include_directories(client_common_obj PRIVATE ${SE_BASE_SERVICES_DEFAULT_INC})
target_compile_options(client_common_obj PRIVATE ${SE_BASE_SERVICES_DEFAULT_CC})
target_link_libraries(client_common_obj client_base_obj)
target_link_libraries(client_common_obj se_base_services_defines)
target_link_libraries(client_common_obj se_modules_common_ipc_proxy_obj)

add_library(client_common_so SHARED)
target_link_options(
    client_common_so
    PRIVATE
    ${SHARED_LINKER_FLAGS}
)

target_link_libraries(client_common_so PUBLIC client_base_obj)
target_link_libraries(client_common_so PUBLIC logger_obj)
target_link_libraries(client_common_so PUBLIC client_common_obj)
target_link_libraries(client_common_so PUBLIC se_modules_common_ipc_proxy_obj)

set_target_properties(client_common_so PROPERTIES OUTPUT_NAME "combine")

file(COPY inc/client_common.h DESTINATION "${CMAKE_SOURCE_DIR}/output/")
hw_sign_ta(client_common client_common.so.sec)
